package com.biglead.demo.interceptor;


import com.biglead.demo.service.UserService;
import com.biglead.demo.utils.JsonUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Objects;

@Component
public class WebInterceptor implements HandlerInterceptor {

    @Autowired
    private UserService userService;

    @Override // 判断用户是否登陆的拦截逻辑
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {

        return true;
    }
}
